package com.rayo.accesscontrollercopy.model.db.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.litesuits.orm.db.annotation.Column;
import com.litesuits.orm.db.annotation.Table;
import com.rayo.accesscontrollercopy.config.NetworkConfig;

import java.util.Date;

/**
 * Created by yanghaojie on 16/7/27.
 */
@Table("dmutime_table")
public class DmuTimeData extends BaseModel {
    public static final String TO_TIME = "to_time";
    public static final String FROM_TIME = "from_time";

    @JSONField(format = NetworkConfig.JSON_TIME)
    @Column(FROM_TIME)
    private Date from;

    @JSONField(format = NetworkConfig.JSON_TIME)
    @Column(TO_TIME)
    private Date to;

    private int sun;

    private int mon;

    private int tue;

    private int wed;

    private int thu;

    private int fri;

    private int sat;

    public DmuTimeData() {
        this.from = new Date();
        this.to = new Date();
        this.sun = 0;
        this.mon = 0;
        this.tue = 0;
        this.wed = 0;
        this.thu = 0;
        this.fri = 0;
        this.sat = 0;
        this.editime = new Date();
    }

    public Date getFrom() {
        return from;
    }

    public void setFrom(Date from) {
        this.from = from;
    }

    public int getSun() {
        return sun;
    }

    public void setSun(int sun) {
        this.sun = sun;
    }

    public Date getTo() {
        return to;
    }

    public void setTo(Date to) {
        this.to = to;
    }

    public int getMon() {
        return mon;
    }

    public void setMon(int mon) {
        this.mon = mon;
    }

    public int getTue() {
        return tue;
    }

    public void setTue(int tue) {
        this.tue = tue;
    }

    public int getWed() {
        return wed;
    }

    public void setWed(int wed) {
        this.wed = wed;
    }

    public int getThu() {
        return thu;
    }

    public void setThu(int thu) {
        this.thu = thu;
    }

    public int getFri() {
        return fri;
    }

    public void setFri(int fri) {
        this.fri = fri;
    }

    public int getSat() {
        return sat;
    }

    public void setSat(int sat) {
        this.sat = sat;
    }

}
